<?php

/**
 * VReceivables form base class.
 *
 * @package    erp-crm
 * @subpackage form
 * @author     Milwell H. Sia
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 16976 2009-04-04 12:47:44Z fabien $
 */
class BaseVReceivablesForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'iden1'         => new sfWidgetFormInputHidden(),
      'document_iden' => new sfWidgetFormInputHidden(),
      'credit'        => new sfWidgetFormInput(),
      'debit'         => new sfWidgetFormInput(),
    ));

    $this->setValidators(array(
      'iden1'         => new sfValidatorPropelChoice(array('model' => 'VReceivables', 'column' => 'iden1', 'required' => false)),
      'document_iden' => new sfValidatorPropelChoice(array('model' => 'VReceivables', 'column' => 'document_iden', 'required' => false)),
      'credit'        => new sfValidatorNumber(array('required' => false)),
      'debit'         => new sfValidatorNumber(array('required' => false)),
    ));

    $this->widgetSchema->setNameFormat('v_receivables[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'VReceivables';
  }


}
